/**
 * 路径封装：获取项目的绝对路径
 */
const path = require('path')

// 项目启动目录，也就是根目录，是一个绝对路径
const appDir = process.cwd();

const pathResolve = (relativePath) => {
  return path.resolve(appDir, relativePath)
}

module.exports = pathResolve;
